package com.briup.day34;

import java.io.File;
import java.net.URL;
import java.util.Properties;

public class FileDemo2 {

	public static void main(String[] args) {
		
		File file = new File("src/com/briup/day34/hello.txt");
		System.out.println(file.exists());
		
	/*	Properties properties = System.getProperties();
		
		System.out.println(properties);*/
		
		/*Class cls = FileDemo2.class;
		
		URL url = cls.getResource("/");
		System.out.println(url.getPath());*/
		
		String filePath = FileDemo2.class.getResource(
				"/com/briup/day34/hello.txt").getPath();
		System.out.println(filePath);
		File file1 = new File(filePath);
		System.out.println(file1.exists());
		



	}
	
}
